package com.base.service.impl;

import com.base.mapper.voipmapper.WebPayOrderMapper;
import com.base.po.voip.WebPayOrder;
import com.base.po.voip.WebPayOrderExample;
import com.base.service.WebPayOrderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("WebPayOrderService")
public class WebPayOrderServiceImpl implements WebPayOrderService {
    @Autowired
    WebPayOrderMapper webPayOrderMapper;

    @Override
    public int countByExample(WebPayOrderExample example) {
        return webPayOrderMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(WebPayOrderExample example) {
        return webPayOrderMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return webPayOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WebPayOrder record) {
        return webPayOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(WebPayOrder record) {
        return webPayOrderMapper.insertSelective(record);
    }

    @Override
    public List<WebPayOrder> selectByExample(WebPayOrderExample example) {
        return webPayOrderMapper.selectByExample(example);
    }

    @Override
    public WebPayOrder selectByPrimaryKey(Integer id) {
        return webPayOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(WebPayOrder record, WebPayOrderExample example) {
        return webPayOrderMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(WebPayOrder record, WebPayOrderExample example) {
        return webPayOrderMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(WebPayOrder record) {
        return webPayOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WebPayOrder record) {
        return webPayOrderMapper.updateByPrimaryKey(record);
    }

    @Override
    public WebPayOrder selectByOrderNum(String orderNum) {
        return webPayOrderMapper.selectByOrderNum(orderNum);
    }

    @Override
    public Integer countByMobile(String mobile, String parentid) {
        return webPayOrderMapper.countByMobile(mobile,parentid);
    }

    @Override
    public List<WebPayOrder> selectByMobile(Page page, String mobile, String parentid) {
        return webPayOrderMapper.selectByMobile(page, mobile, parentid);
    }
}
